import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import ElementUI from "element-ui";
import tinymce from "tinymce";
import VueTinymce from "@packy-tang/vue-tinymce";
import 'element-ui/lib/theme-chalk/index.css'
import memoryUtils from '@/utils/memoryUtils'
import storageUtils from '@/utils/storageUtils';


// Vue.config.productionTip = false;
Vue.config.productionTip = process.env.NODE_ENV ==='production';
console.log(process.env.NODE_ENV);
Vue.use(ElementUI);
console.log(process.env.VUE_APP_BASE_API);
Vue.prototype.$tinymce = tinymce
Vue.use(VueTinymce)

import * as echarts from 'echarts';
Vue.prototype.$echarts=echarts

const user = storageUtils.geteUser()
if(user && user._id){
  memoryUtils.user=user
}

import '@/permission'

new Vue({
  router,
  render: (h) => h(App),
}).$mount("#app");
